{include file='common/header'}
{include file='common/menu'}


<!-- Page Content -->
<div class="page-content">
    <!-- Page Breadcrumb -->
    <div class="page-breadcrumbs">
        <ul class="breadcrumb">
            <li>
                <a href="#">系统</a>
            </li>
            <li>
                <a href="{:url('cate/lis')}">栏目列表</a>
            </li>
            <li class="active">添加栏目</li>
        </ul>
    </div>
    <!-- /Page Breadcrumb -->

    <!-- Page Body -->
    <div class="page-body">

        <div class="row">
            <div class="col-lg-12 col-sm-12 col-xs-12">
                <div class="widget">
                    <div class="widget-header bordered-bottom bordered-blue">
                        <span class="widget-caption">添加栏目</span>
                    </div>
                    <div class="widget-body">
                        <div id="horizontal-form">
                            <form class="form-horizontal" role="form" action="" method="post">
                                <div class="form-group">
                                    <label for="pid" class="col-sm-2 control-label no-padding-right">上级栏目</label>
                                    <div class="col-sm-6">
                                        <select name="pid" id="pid" class="form-control">
                                            <option value="0">顶级栏目</option>
                                            {volist name="cates" id="cate"}
                                            <option value="{$cate['id']}">{if condition="$cate['level'] neq 0"}|{/if}<?php echo str_repeat('---', $cate['level']) ?>{$cate['catename']}</option>
                                            {/volist}
                                        </select>
                                    </div>
                                    <p class="help-block col-sm-4 red">* 必填</p>
                                </div>

                                <div class="form-group">
                                    <label for="catename" class="col-sm-2 control-label no-padding-right">栏目名称</label>
                                    <div class="col-sm-6">
                                        <input class="form-control" id="catename" placeholder="" required="required" name="catename" type="text" maxlength="30">
                                    </div>
                                    <p class="help-block col-sm-4 red">* 必填</p>
                                </div>

                                <div class="form-group">
                                    <label for="keywords" class="col-sm-2 control-label no-padding-right">栏目关键字</label>
                                    <div class="col-sm-6">
                                        <input class="form-control" id="keywords" placeholder=""  name="keywords" type="text" maxlength="100">
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label for="desc" class="col-sm-2 control-label no-padding-right">描述</label>
                                    <div class="col-sm-6">
                                        <textarea class="form-control" id="desc" placeholder=""  name="desc" type="text" maxlength="255"></textarea>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label for="" class="col-sm-2 control-label no-padding-right">推荐位</label>
                                    <div class="col-sm-6">
                                        <div class="control-group">
                                            <div class="radio" style="float: left;margin-right: 10px"><label><input checked="checked" name="recommend" value="1" type="radio"><span class="text">是</span></label></div>
                                            <div class="radio" style="float: left;margin-right: 10px"><label><input name="recommend" type="radio" value="0"><span class="text">否</span></label></div>
                                        </div>
                                    </div>
                                    <p class="help-block col-sm-4 red">* 必填</p>
                                </div>

                                <div class="form-group">
                                    <label for="" class="col-sm-2 control-label no-padding-right">栏目类型</label>
                                    <div class="col-sm-6">
                                        <div class="control-group">
                                            <div class="radio" style="float: left;margin-right: 10px"><label><input checked="checked" name="type" value="1" type="radio"><span class="text">文章列表</span></label></div>
                                            <div class="radio" style="float: left;margin-right: 10px"><label><input name="type" type="radio" value="2"><span class="text">单页</span></label></div>
                                            <div class="radio" style="float: left;"><label><input name="type" type="radio" value="3"><span class="text">图片列表</span></label></div>
                                        </div>
                                    </div>
                                    <p class="help-block col-sm-4 red">* 必填</p>
                                </div>

                                <div class="form-group">
                                    <label for="content" class="col-sm-2 control-label no-padding-right">内容</label>
                                    <div class="col-sm-6">
                                        <textarea style="resize: none;height: 100px" id="content" placeholder="" name="content" type="text"></textarea>
                                    </div>
                                    <p class="help-block col-sm-2 red">* 必填</p>
                                </div>

                                <div class="form-group">
                                    <div class="col-sm-offset-2 col-sm-10">
                                        <button type="submit" class="btn btn-default">保存信息</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>
    <!-- /Page Body -->
</div>
<!-- /Page Content -->


<script src="__ADMIN__/UEditor/ueditor.config.js"></script>
<script src="__ADMIN__/UEditor/ueditor.all.min.js"></script>
<script src="__ADMIN__/UEditor/ueditor.parse.min.js"></script>

<script>

    var ue = UE.getEditor('content');

</script>

{include file='common/footer'}